/**
 * 
 */
package com.maywide.jdp.core.vo;

import com.google.gson.annotations.Expose;

/**
 * 键值对类
 * 
 * @author luoyang
 * @version 1.0
 * @since JDK1.6
 */
public class KeyValue {
	/**
	 * 键
	 */
	@Expose
	private String key = null;

	/**
	 * 值
	 */
	@Expose
	private String value = null;
	
	public KeyValue() {
	}

	public KeyValue(String key,String value) {
		this.key = key;
		this.value = value;
	}
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public boolean equals(Object obj) {
		if(obj instanceof KeyValue)
		{
			KeyValue k=(KeyValue)obj;
			if(k.getKey().equals(this.getKey()))
				return true;
		}
		return false;
	}
}
